package day0108HomeWork;

public class Vehicle {
	
	private int speed;
	private int size;
	
	
	
	public void move() {
		System.out.println("Vehicle.move()");
	}
	
	
	public void speedUp(int speed) {
		//this.speed = this.speed + speed;
		this.speed += speed;
	}
	public void speedDown(int speed) {
		//this.speed = this.speed - 1;
		this.speed -= speed;
	}


	
	
	public Vehicle(int speed, int size) {
		super();
		this.speed = speed;
		this.size = size;
	}

	
	
	public Vehicle() {
		super();
		// TODO Auto-generated constructor stub
	}




	public int getSpeed() {
		return speed;
	}


	public void setSpeed(int speed) {
		this.speed = speed;
	}


	public int getSize() {
		return size;
	}


	public void setSize(int size) {
		this.size = size;
	}


	@Override
	public String toString() {
		return "Vehicle [speed=" + speed + ", size=" + size + "]";
	}
	
	
	
}
